JsLinting and sanitizing code, removing unnecessary dependencies