conver html to js