move transcoding.js functions to openwebif.js
update: openwebif.js