update slate.js