Add current page javascript