Modifies js for lazy loading