Refactor some JavaScript code
Refactor loadModifiers() by using forEach()