Facebook message counter written in PHP and Javascript