Changed variable name to avoid conflicts in IE