fully working jQuery example. surprisingly easy.