changes on function call have been made for globs.js and restOrder.py