Replace coffee with js