Golang Access Last Element Of Array Javascript Function Arguments