-changed functions to unique function names to not conflict with other scripts that may be included on the page