added AMD support
call picturefill if document is allready loaded