redo slate in JS