put javascript into own file