Remove background page and let it be generated
Safer comparisons
Removing erroneous whitespaces (Only touched whitespace!)
Missing and unnecessary semicolons
new Array() to []
Variable naming issues
Safer comparisons
Mixed spaces and tabs, line break issues
Unescaped characters in regex, unnecessary commas
Manual merge from deiga's clean-code branch