> How can I expect from them to license their code with a free license?
Some examples of JavaScript code under a free software license:
* jQuery
* extJS
* Handlebars
* Backbone
* Angular
* Ember
In fact, pretty much any JavaScript library that people are using. Then you have stuff like node, which is being used extensively on the server -- also free software.