Feature/nativedimensions

This fixes errors on devices that do not support javascript returns
The only needed commit in this branch is a9184f0