add javascript backup if pointer-event is not supported by browser