Made a few constant string arrays static to help compilers to optimise their initialisation.
Workarounds for javascript code in non-C++11 compilers.