reorganized external javascript files