updated slate.js