when do emma and julian get together