Added a default require.js basePath, fixed some NPEs