Get Device info

Hey,

is there any way to get the device os name within the javascript? Output should be similar to cordovas device object.

Edit: Used the Environment Object.