Put javascript in its own file