Update elephant.js

Make elephant AMD compliant