put javascript in own file