control flow template [Non Jquery purely KOjs