Fix "cannot call methods on listview" error.

This change fixes the following error, at least on Mac Chrome 37:

"Uncaught Error: cannot call methods on listview prior to initialization;
attempted to call method 'refresh' jquery-1.8.2.min.js:2"
Merge pull request #45 from dossy/master

Fix "cannot call methods on listview" error.