module coffee script re-write