initial jstest functions fleshed out