Javascript fix for bios