changes for js