Turn javascript arguments into an array