organising js