Support AMD require

Added a declare for AMD modules, and browserify require.