Mobile IQ Javascript Challenge