User:Ghostroot/common.js

$.getScript("http://www.jshint.com/src/js/jshint.js", function { var source="varxsd"; var pass=JSHINT(source);

if(pass) { console.log("Okay"); } else { console.log("Failed"); for(var i=0;i<JSHINT.errors.length; i++) { var error=JSHINT.errors[i];

console.log(error);

} } });