trying to fix js code issues, when dbjoin used select from exisitng list