Unneeded JS function call deleted