strcutre js files in directories