This example is taken from the in-development Hikar webapp, https://github.com/nickw1/hikar.org which is licensed under the GNU General Public License v3, and therefore this code is also similarly licensed.