Amdify

Added an amd module for the extension so It can be used with amd file loaders like requirejs.