CBQE-683: update query support in js test files

Including new smart_query.js test case

Change-Id: I4d4f17d38611686e1bf277a6a42fa1ac19d70d3b
Reviewed-on: http://review.couchbase.org/25022
Reviewed-by: Chisheng Hong <chisheng@couchbase.com>
Tested-by: Tommie McAfee <tommie@couchbase.com>