Split JavaScript examples and rework them, especially the traceback-based one.