Javascript package template for modules that works in node and browser