changes to js to detect small screens