Replace line accidentally removed from EPL javascript function