delete unused javascript code