move example to separate area, break up code into actual jquery plugin