If you really want to learn game development on the web, you should check out http://codehs.com
You learn how to make games that run in HTML5 Canvas using JavaScript, and there are custom libraries that make graphics and user interaction much easier to deal with.
Also, you can take the class at your own pace, so no need to worry about artificial deadlines.