fix pavilon js