replacing javascript from previous position to enable install buttons