dom.js works more or less