How To Pass An Array As An Argument In Javascript