modified hdi JS
Merge branch 'berhacker' into production-master