update .js and html example