my first javascript/front-end web code, circa 2009