Apache Jelly in Javascript