js clean up