fixed html bug in js code