updated js decision