Update xtpl.js

New version that is faster and has better error handling