change gelookup to javascript