Refactoring configuration frontend js