Javascript/Ajax/JQ Battle/Combat system

Hello.
I am really motivated to create and learn how to make battle system for a RPG browser game.

I am PHP expert and my JS/Ajax/JQuery skills are really low.

I would like to know where I can start learn to create complex battle system, starting from the basic, turn-based.

If there is anyone who can guide me through this or have any idea how I can learn to create battle system with monsters, please let me know.

@theunreal ;

Try this dude,

Let me know when you finish your first JavaScript game.

This is very nice, but it’s just using functions from a class which is already made, made for beginners and nothing good can be learnt from it.
It’s waste of time…