Fixing a quick javascript error and adding analytics.

Signed-off-by: Alfonso Martinez <corrupted.rogues@gmail.com>