Update ayepromise.js

Debug mode added, for better error debugging