fix order of included  pages js of a page, they should come after dependencies of the current page