Add window.percent variable for predefining methods