implementation of https://github.com/scottjehl/picturefill as jquery-plugin