add graph pluging and search term javascript