Java script was not correcting right used the did some minor edits.