Wrap JavaScript as an anonymous function.
Restrict widths of form elements for desktops and tablets.