minor js file clean up