Cleaning up the coding coordinate JS