Port Fix for Bug 37685 to 1.2.x branch - Javascript tag does not work on Mozilla - reported by Philippe Mouawad. Changed the javascript rendered so that it just returns formValidationResult if the "&&" operators are used (stopOnFirstError is true) or (formValidationResult == 1) if the bitwise (i.e. "&") operator is used (stopOnFirstError is false). Also added braces to the if statement and tidied up the indentation.