Js hint assets/device

I'm about to make a few small tweaks to the /assets/device codebase, so I thought I'd JSHint it first.