To use C2, it's not a requisite to code in javascript.
Simply go through the tutorials for C2. Pretty much any logical engine can be made through the event system, without requiring you to expand with custom plugin/behavior.
Learn to use C2 as it is first, and then, according to your needs, learn to expand it.
That's a mistake a lot of "coders" do when arriving into C2, whereas it's already fully capable and the limits are only the knowledge and capabilities of the user.
Take the time to go through tutorials, make several small projects, getting bigger each time as you learn more about the soft and the logic of game making.