Fun experiment from my early days in javascript programming.