Put javascript in seperate file for cleanliness