Migrated to require.js