Fix missing 'var'.
Separate CSS and JavaScript from HTML.