minor cleanup js file