changing to coffescript in mercury layout