check term before changing cursors, add js library syntax