Update autonex.js

New code