small clean ups in js file