Fixed dependency problem with js-files