add loader.js to repo and fix .gitignore