Hi,
to use a smart card or a token on the client PC from within a web page (hosted on IIS or some other web server) you need NCryptoki JQuery Plugin.
In the Download section there is the SDK with some sample codes in Javascript that help you in your development.