clean up code, comment js file