Javascript / JSON test for mediasmart interview