modify: js to coffee