Added auto-prefill from hidden field

Added auto-prefill from hidden field if a hiddenTagListId option is defined. Also consolidated removed duplicate code into a new 'prefill' function.