fixes for the javascript error that currently happens, when loading the configuration js file