moved around some functions
moved around some functions

adamdbradley/foresight.js,pbawebsite/foresight.js,kidaa/foresight.js,kidaa/foresight.js,pbawebsite/foresight.js,WPMedia/foresight.js,npmcomponent/brynbellomy-foresight.js