Replace jq by $ and fix missing semicolons