JavaScript Error Handling: SyntaxError: "use strict" not allowed in function with non-simple parameters