g12 solution
javascript and html added