api DOM script