Add splitData Function

I added the split data function and deleted the html calls that were
not needed.