Updated htb.js to work with the web app configuration