Converted erb to haml and worked on the coffescript