Added chase option for javascript