Javascript magic to allow user to specify package name
Fix warning