Update tmpl.js

fix IE compitable with chartAt