Golang Get Last Element Of Array Javascript Function Arguments