Updated the patch to remove inline js and adding that in the renderable array.