NXP-13989: fix refresh and refactor jsFunction
NXP-13989: move jsFunction in the same form
NXP-13992: add alt on remove uploaded file for test purpose
NXP-11551: reduce calls to RepositoryManager.getRepositories