Fix for global Javascript HB object