component-build: JS Exclusion if no Scripts

This PR accomplshes a goal very similar to #80 (no building css if none exist) but applies to JS.

I've also included a test for both css and js exclusion. (within the same fixture, if that's alright)