mustache js templating on mega menu, fix various bugs