use better coffeescript conditionals

this will actually compile into the same thing, but it's much easier to read.
Merge pull request #3 from slang800/master

use better coffeescript conditionals