static/scriptengine: use Handle instead of Persistence

fixes #569