Javascript warnings for c++98 - remove vla