add jscs, switch to optimist for agv parsing