unwrap method is causing ready function to fire twice.