fix ie6/7 localStorage by userData, fix #1