added javascript

Long pooling still have to be done (but no pressure, it's already after
deadline)