minor js clean up