Fix some JsHint warnings - remove unused dependencies etc