Minor tweeks / added focus method (c++js)