javascript funcitons put in their own file