Fixing bool retrieval in JSWrapper.