Fix compatibility with 1.23 and 1.24

Loads the style modules instead of the script paths
Source https://gerrit.wikimedia.org/r/#/c/157490/
Working on #274