Made everything return jsvalue
Added design doc functions