The issue from previous commit was cause by something else (uglifier?), so I reverted the changes and now it seems to work.