Responsive iFrame script using only JavaScript