16x9.js: Add pure JavaScript version of 16x9.py.