fixing js metrics