Make top version alert javascript generated