added debounce function to moohelpers
resize function added; new control of page load flow to make things more smooth