Modify Ti.init to receive data as a parameter