organising js files in the right folders