Converted to require.js compatible module