Update SbtRjs.scala

- collect should be more efficient than filter + map 
- staying DRY with dotJS
Update SbtRjs.scala

you're right completely forgot about pattern matching semantic on constants
Merge pull request #1 from thoefer/patch-1

Update SbtRjs.scala