Made it play nice with RequireJS powered setup.

Take 2 on RequreJs support,
this time with smaller set of changes.

Related to https://github.com/airbnb/rendr/pull/173

/cc @jskulski