cleanup whitespace in json and js files