Added javascript tap handler