Fix javascript error caused by extra right parentheses

Fixed a javascript error by removing an extra right parentheses on line 241 that was added during a previous commit. I also just noticed that my commit has removed the new line at the end of the file. Not sure how you feel about that; sorry if causes inconvenience.