fix #15 jsm_build: sub-resources now in the right order