Provides client-error-logging javascript with endpoint