Inspiration? Miley's updo was reminiscent of Cameron Diaz's in 1998 film There's Something About Mary