Simple JavaScript metrics beacon library