js directory tidied