Modified console logging of the result returned from JavaScript
Updated OS X version to capture and log JavaScript return value