Bug in screencapture.js