Added support for enum in idlharness.js

Added support for enum in idlharness.js