scope javascript exercise with self executing functions