Actually, this diff is old--the current master does fine with device ids. http://matthewhudson.me/projects/device.js/ just needs to be updated to 0.1.58. :)