learning and testing js