splitted javascript and updated .gitignore