organize files

organize and refacor application js