Just a nit  `var offset =+ attrs.offset;`

Also, are you sure it is `=+` and not `+=`?