Simple polling mechanism for Angular JS