Added jshint, validated js code