Update examples to use package.json instead of index.json

Ignore geo-location and todo examples since they aren't working right
now. In some cases the files that are used as modules contribute top
level pages directly instead of returning a factory. This may not be the
best practice, but it should be addressed later.

The chart.js demo now needs a "npm install" before it can run.

Fix jshint warnings about <variable> "was used before it was defined".
These issues haven't been reported when all code was contained in
a function scope due to using tabris.load().

I thought about removing the "latedef" option [1] from our jshintrc,
but then I realized that this would also swallow warnings for code like

    foo(bar);
    var bar = 23;

[1] http://jshint.com/docs/options/#latedef

Change-Id: Ie020cd1805739520322661411eb72c9c1a5117c3