Hi,
I think you should first learn some basics of HTML , CSS and JS before even thinking of 3rd party libraries. Also take time and learn about basic ideas of how game workflow looks. Take some simple game ideas like "war" card game or paper, rock and scissors and describe their logic in diagram style. This will help you in feature.
But as i do not want to left you with nothing. Here i have created "paper, rock and scissors" with HTML , CSS and JS. It should not be hard for you to understand what is going on there (with help of Google ).
https://dl.dropboxusercontent.com/u/98830900/html/paperRockScissors.zip
This example may look for your simple and stupid but it has basic elemets that are present i most web games :
1. User interface (3 buttons :D )
2. Div with log where you see results of pushing buttons and actions that "enemy" takes . It is important that it chagnes without reloading webpage. If this were a graphic game there would be some drawings etc.
3. js script with game engine
Hope that it will help you a little