Add JavaScript examples for handling screen orientation changes