Added returnCode property to process object in JavaScript. Assert fails in JavaScript return result in non-zero return code. Updated test scripts accordingly.