Fixed normalize in JS template