removing whitespace in js file