Update view.js

Adds support for relative URLs in templates loaded with RequireJS. Allows us to work with custom `baseUrl`s in `require.config()`.