[CORE][JS] javascript functions moved to utils.js