KN-6330 Refactoring of computing hash of js files