Store the offset in a variable to avoid re-calculating:

```js
var offset = headHeight + 10;
```