An exersise to improve my javascript