add test.htm for test in browser
fix a bug that IE 6 7 don't support [] on strings