fixed main javascript file