Clean-up js code, removing dat.gui calls.