Implementation of oAuth in Google, Facebook and Twitter using Javascript