Rewrite to use JInput in Google and Facebook