allow js() to accept an array, add a test for this usage