cleans the js formatting