Update structure and code
Add mapped_device.js
Add device_writer.js
Add pwm_device.js