use type for define lookupmap
small syntax change in html file