Some more related to previous commit, fixing bug where js would fail because of missing settings object