Updated lib.js to use innerWidth rather than width

Used innerwidth. These now fire when media queries do on all browsers