Figured out how to pass a js array to codeigniter using jquery ajax