HTML generator for JS