Simplify responsive JS snippet
Tidy up some scripts