add js files and fix .gitignore