redid slate config (now js again + modal key bindings)