- cleaned up some of the js