"Constants" should be all caps:

    var DEFAULT_ATTR = "id";