Allow loading as AMD module

F2.js can be loaded as a standalone script file or via an
AMD loader like requirejs, curl, dojo require, etc.