JS lint fixes