Removing eroneous js code from listing form