Reworked the loader to allow to build a single js instead of 3.