Split html and js