example code for koglerjs.com