Update ats.js

fix the "slice() null"warrning