First snippet: qooxdoo function