Instead of having to create the `postion` variable, and then load it with properties, why not just call these functions while you're building your object to be returned.  Avoid variables whenever you can:

```javascript
return {
  direction: calcParagraphDirection(),
  ...
```