What is wrong with this sample code? (There is also an Uncaught ReferenceError: rainbow is not defined)