[html,vendor/pybossa][m]: refactor to use new pybossa.js library and fix issues with pybossa.js.