Implements as jQuery plugin