Separated html and js