made js unit tests work again
made js unit tests work again

Change-Id: Iff15f3a4d6f956dddca9d75a382010ed51d4d6c2
Reviewed-on: http://review.membase.org/4794
Reviewed-by: Benjamin Young <fe09bc2ef2737a3258f978e26226dcbac1b3f948@couchbase.com>
Tested-by: Benjamin Young <fe09bc2ef2737a3258f978e26226dcbac1b3f948@couchbase.com>

nimishzynga/ns_server,daverigby/ns_server,nimishzynga/ns_server,t3rm1n4l/ns_server,vzasade/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,mschoch/ns_server,vzasade/ns_server,t3rm1n4l/ns_server,ceejatec/ns_server,ceejatec/ns_server,daverigby/ns_server,daverigby/ns_server,mschoch/ns_server,pavel-blagodov/ns_server,daverigby/ns_server,ceejatec/ns_server,mschoch/ns_server,mschoch/ns_server,nimishzynga/ns_server,ceejatec/ns_server,mschoch/ns_server,pavel-blagodov/ns_server,membase/ns_server,membase/ns_server,mschoch/ns_server,pavel-blagodov/ns_server,ceejatec/ns_server,daverigby/ns_server,membase/ns_server,t3rm1n4l/ns_server,vzasade/ns_server,vzasade/ns_server,ceejatec/ns_server,nimishzynga/ns_server,pavel-blagodov/ns_server,membase/ns_server,membase/ns_server,t3rm1n4l/ns_server,membase/ns_server,nimishzynga/ns_server