Golang Array Length Javascript Method Beam