updated slate to slate.js