Unable to properly embed form using form's script