Factored out javascript settings

Made JavaScript sources based on resources, and added jsSources to
resources.
Merge pull request #2 from jroper/javascript-settings

Factored out javascript settings