clean up js and white space a little