Changed BaseView's AMD definition to work in a more commonjs way