Javascript Inheritance and Interfaces using the Revealing Module Pattern