IE 7, 8, 9 fixes (a single comma kills the entire app...)
added mkdir, fixes #19