Update bonecard.js

Move code into document ready function