test js var to cal