Added support for OSX in JSON.cs
Now gets unique device ID if no playerID is given