fix several JSHint warnings

+ enabled the 'smarttabs' option
+ added 'Raphael' as global
+ minor spacing changes