fixed problems with quat coffee → js conversion