modal improved
qunit tests for modal added
confirm is improved but not tested