Fixed JSON error in Chrome App mode