Mozilla's JavaScript engine throws reference error

SpiderMonkey is Mozilla's JavaScript engine throws reference error