rearranged application js