[slate] switch to js