Update motor.js