Towards module pattern with object literals