testing phonegap window.device

looks like window.device is a function, not an object with static data.
This might be causing the error.