Fixed javascript of configuration frontend