updated polyfill to use jquery plugin

fixes #257 

See: https://github.com/mathiasbynens/jquery-details