Improve javascript in welcome page [ci skip]
refactor Route#ast to use or-equals and block, instead of return with a cond
Merge pull request #8779 from goshakkk/refactor-route-ast

Refactor Route#ast to use or-equals and block, instead of return with a check
Refactor to not call path.ast twice