Fun and games with javascript.