Add .npmignore and move script loading into body