replace slate.js with slate