fix for javascript failing to load