hack to make javascript work