Fixed a bug where javascript would fail when only display online elements, no setings object was created.