Add license.
Add switch to decode signal in Javascript, for now only dumps data into console.