Function JS divided in differents folders