separate html and javascript