[TM-9]: reorganize js files for requirejs