Clean up js settings file. Most of it was already in the Device.js