Separated js & html

Separated js & html