fixes wrong inclusion positioning in JS file