fix jshint and missing module errors