Made it work with modern browsers