Adding a simple JS <-> Ruby communication bridge.

NOTE: this commit include debug console message in both Ruby and JS. Remove before release!