Add javascript snippets

Signed-off-by: Mailson Lira <mailson@gmail.com>