added examples for js rules

Yaaay!