Instead of all that code there are just a few lines of code and you can place text or picture on the same place that will be visible if user's javascript is turned off. And, most importantly, code validates