Added jsHint testing to all js files, and fixed style