Fix javascript bug with first time install (uninitialized settings)