write web App in nearly pure javascript(coffeescript)