main JavaScript for iframe designer