1. move javascript codes from html to js file.
2. remove comments in js file.