Add UMD loader + return boxfit

Should fix #8 

Tested with your demo page for global and a modified page for requirejs, works fine.

Added `define` to jshint global because of the AMD test.