Online status app with ajax and json