Fix #1408: packageJSDependencies is broken.