added document on ready function