Fixed bug in contentscript added by switch to s...

witch.

The switch statement was switched to from an array of else if
statements.  I forgot to add some of the && conditions that were
present.

Also fixed a typo in gsUtils.