Removed trailing whitespace from js