Client-side JavaScript library for Survana