JS license cleanup

implements all requirements detailed in BROOKLYN-61, making JS compliant with Apache.
note only the last commit is relevant, but it would have conflicts if we did not depend on #159 and #168 .