Moving the js out to its own file