Amd support

Added AMD support.

Also removed _picoModal_ from global object if the environment is using AMD.