separated html from js
moved js to separate file