separating html from js