Fixes for iframe javascripts