Fixed all JSHint errors and put all .js files in strict mode