my way of coding js