Clean up the js for time