The setTimeout function is now getting called but it is refreshing the page ignoring the "timeout" value of 10000. The refresh rate is approximately 2-3 seconds and page is getting refreshed indefinitely (not once). Any ideas why it is working in this manner and the possible workaround ?
I had the same error you had but with the Hello World extension : "Unable to get value of the property 'prototype': object is null or undefined"
I managed to get rid of it by naming the folder containing the js and xml the same way it is in Definition.xml under the "Path" attribute.
Maybe it's a little bit too late for you (the post is one year old) but since this is the only link the search engines return when you type the error associated with "QlikView" I hope this will help beginners to build their first extensions.