Update readyfunctions.js