replace coffee with js