Fix missing dependency to device.js