Made RequireJS friendly.

Wrapped into ```amdefine``` and "hid" require of server only file.