fix for flash engine in Safari 7.0, the JS callback methods where not registered