added ability to change hmtunitdriver enable javascript status.