Open-source event tracking API in javascript