Javascript example showing how to use TeamPulse API