Khan: Wrap resize function in $(document).ready.