html and js structure defined