Moved logic to bountysource.js
Fixed bugs caused by changes in the API