Update pegglebot.js

wrong bracket closure