register js functions on PYOBJ; add quit button example