My attempt at javascript and jQuery