modified html and added js solution