Implement require.js to manage js dependencies and lazy-load the mapping apis