test js throw