Actually, everything depends on your game idea.
If you are the newbie, I recommend to apply for an udacity course HTML5 game development. It starts at the beginning of the Feb, 2013
http://www.udacity.com/overview/Course/cs255/CourseRev/1[
^]
You might also need to read some materials about game algorithms (like path finding, etc)
There is a number of game engines on a market, so probably after evaluating, you will choose the one most optimal for your tasks.
https://gist.github.com/768272[
^]