Moves inline JS into own file for now