html and js cleanup