Polymorphic AMD framework for Express.JS