Remove unneeded function to make the javascript work again