quick fix for the 'loose' main.js sorting as described in issue #7 and #9