added data-poll option
added ready event