deal with no flow information in js