Move js into its own file and utilize plays javascript reverse routing