added new javascript snippet for dumping the call stack