Convert example to valid JS
Close PR #4 and merge commit 'f551254b305d16a175e3a9c112fd951d39009834' into develop