Updated snippet and javascript

Signed-off-by: Craig Sullivan <craig@melbourne-systems.com>