PhoneGap mahjong server and client