adding some global statements for jslint and adding semicolons