some best practices for JS modules