Add a new function to the scripting environment to make it easier to create a new element.
Improve the style tokenizer and fix a block-comment bug in the process.