splitted html and javascript