Initial commit: my first ever JavaScript function, and the beginnings of a few others