Amazon interview question

Write a JS plugin to manipulate tables (you can use jQuery).