Removed unnecessary code, moved away from settings.js toward environment variables