AMD version

For use with requirejs