add function to remove template specific fields
make main js code external
fix markup
add jquery ui
add code updating html form, fields and tables when unchecked
add license