Fix for IE not understanding commands with parameters

I found that IE does not understand commands with parameters (such as "fontSize 3").

This fix strips off any parameters and also does a check to make sure the browser supports the command before it tries to query the state of the command.

This is a little more generic than some of the other issue solutions which were only looking at fixing specific command problems.