IMG-603 reorganize training module js and clean it up