ability to pass in data as a javascript array