Update staples.js

missing name var in getscope call