test js scale