Insert Variable Inside String Javascript Methods For Querying