add small test of javascript feature