Fixes error from incorrect parameters passed to device.

Wrapped moveElementTo function parameters in an object literal as expected by device.