Update habralite.js

Refactoring
Merge pull request #1 from avbobylev/patch-1

Update habralite.js