Initial Jquery and Javascript functions for Webpage