1. FIX: tpl method can't run under IE7
2. Add some docs