added another test for $JS.object