Update glue.js

Added progress handler