How can I create my own web widgets for InTouch OMI Web?

What is necessary for this and is there a simple example with step-by-step instructions or further information?