Javascript and PHP based project for syncing up online games