Update views.js

Allow to send startKey and endKey for query the view, not just a string