Adds javascript example to compiler