Support AMD

Addresses the issue mentioned in #31 by putting the function that needs to run immediately (but doesn't depend on skrollr) outside the module definition.