refactoring to use require.js package, adding base class for common methods
Release v0.3.6