added javascript dynamic flow chart creation