* Divided the functions in several JS files.