tweaked slightly to only show as many select dropdowns as has been instigated by admin
added custom widget js file
initial creation of functions js. Needs a lot of expansion. contains some TODO items.