Adding some functions to HTML using JQuery