Solutions to various javascript exercises found on the web