W5D5, Javascript practices