Added .gitignore and analytics if JS file exists