sync coffee<->js