Implemented the device.js file. Created the platform.js file and implemented
route.js