it can be used for everything. there are examples of quake 2 ported to javascript/webgl for example.

i like this engine/framework:
http://www.glge.org/

but there certainly are limitations because javascript even with the recent jit developments is rather slow for stuff like physics calculations. the javascript audio possibilities also still are very limited.