added registration code to js
Merge branch 'master' of https://github.com/whyrusleeping/GoLiathChat