added js method getDeviceId