Revealing Module Pattern in javascript