Fix parser to retain last token correctly
Remove obsoleted type test
Expand JS UI info display a little
Add explanatory comment to FSM sample
Fix up JS exception reporting

Previously, stack traces were too long and the main module was only
referred to as __main__. Correct these so that methods are correctly
identified.
Add .gitignore file to samples/dialects