html structure and js modified