fixe somne bugs from conversion js to coffee ... still not working