removed old 'delete' javascript code