moved js for picturefill outside of window resize function