JS code refactor
regular expressions extended, delete button added (w/o functionality yet)