[MGFFT-81] refactor to have a Js and Mustache parsing function.