fixing jslint issues like trailing whitespace and missing semicolons