jQuery code for different functionallity that could be used in a project.