Fix client-side errors that prevented script load