split application js into two different files. use jsformat for js alignment