added js test.

Signed-off-by: rjaureguijr <rjaureguijr@gmail.com>