JavaScript is a good language for game development, provided you have a decent underlying media layer. The browser is not a good media layer. HTML Canvas, timing, input, and audio are all miserably inconsistent and hackish across browsers. Just use Flash.