Streamline JSRetainPtr, fix leaks of JSString and JSGlobalContext