Updated plugin JS files

Rearranged some code blocks to optimize performance. Included the option
to debounce the resize event (turned on by default) with Paul Irish's
small snippet.

Updated readme and demonstration page.