Convert remaining JS to Coffee