JavaScript upgrade to feature modularization