using .ready instead of .bind
Revert "using .ready instead of .bind"

This reverts commit 2c62edf3dcec2a95257a500490cf5c5e0f86b908.
changed some lines