Separate html and js