pmp is the terrain (heightmap and textures), xml basically says where to place which entity and some other parameters like sun light for example and js is indeed for triggers. pmp and xml you probably only want to edit via Atlas. For triggers best read the scripts for other scenarios and binaries/data/mods/public/simulation/components/Trigger.js for available events.