This is my attempt at learning some basic Javascript