JS coding challenge for Code Combat