remove unneeded/commented out JS function