var result = M.info.device();

alert(JSON.stringify(result));
M.tool.log(result);