UNTESTED! complete ua.js