Rempove extra spaces from js code