Fix next_default_name function to continue working in IE < 10.
Merge pull request #28 from tobie/fix-msie-support

Fix next_default_name function to continue working in IE < 10.