javascript code cleanup
added deletable element row