Replace "const" with "var" because it does not seem to be standard enough for Netbeans