Fixed javascript load errors