create table in js
refactoring code style
added remove element on click to "X"