implement prototype in html