javascript interpreter fixed for "no result" case