fix the assets problem with javascript