fix code prettify

* Add type="text/css".
* Use window.onload instead of document.body.onload. It seems that
  document.body is null at that point.
* Fix indentation.
* Fix syntax error. Parentheses were not matched properly.
* Remove duplicated line.
fix indentation