Update manifest permissions to FirefoxOS-compatible syntax
Remove unnecessary q.js library
Fix Preferences is not defined error