js module and html layout