GTNPORTAL-3174 js files refactoring