separate html from js