updated js after change