Temporary impl as jQuery plugin.