make embed_path dynamic to support https access