organising js things