cleaing up some js now that i am understanding it