JS module pattern notes