js diagram router