remove trailing whitespace
fix case where files have multiple .'s
Merge pull request #4 from carrot/sjs/fix

fix case where files have multiple .'s