simplify the scope of $.jqm.closeOnEscFunc
add closeOnEsc option to examples