Added dom ready and used it in binding. Added callback to bind function.