Fixing the html and js