JavaScript: get google Language and type Search