bug in eagle.js, fixed