wrap js in document on ready because it's the 'right thing to do'