Add function to better guard html5 exports