I think the JS missing 'main' error is related to grunt plugins. See: https://github.com/stephenplusplus/grunt-wiredep/issues/36