Hack to get around events no longer working due to bindTo document