Fixed javascript loading