create js v of prob 1