Updated percentage to use JS