add simple test for JS