Update main file to be less browser reliant