first kata - learning javascript