Some JS fixes and changes to variable file parsing, although there's still some bugs in that concerning translation files.