Updated function to remove the required 'targetDiv'

Moved the targetDiv to the optional parameters. By default charts are now appended after the source table.