Create deviceType.js

Actual file to return device type string