test js with map