Please guide me that how I return value to my javascript function. the script is not waiting for the translate function to obtain data from the server and execute further co