Divide new JS functions and old AS functions into sep JS files.