Javascript snippets to use on mobile and responsive projects