reorganize the files of the js app