Created a local export_to_web function