Fix indent and whitespaces
Use CDATA for javascript
Make sure single quotes are encoded and avoid javascript injection