convert entities js to coffee