JsLint

JsLint code and quick smoke check that it worked correctly