Fixed JS Syntax Errors