communication b/w javascript and server (bothways) established.
completed till step3 of registration. 

Signed-off-by: maany <imptodefeat@gmail.com>