Separating html from js