netbeans chokes on const in javascript.