converted complex helpers to LiveScript