add control page javascript