converted this to @
finshed trying to write js to coffee script but not converting correctly
nearly finished after a long break but cannot get rid of return before the final method