misc functions file - added jQuery automated script
additional spacing
minor tweaks for first draft