durandal converted to coffeescript