js: fix int testing