cache require('nw.gui').App.dataPath and silence jslint

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>