fixing js and img issues