Modified appcontainer-driver.js to use Element class

This is for #37