Browserify compatibility

The check for AMD loading wasn't strict enough