finished grab.js