Added javascript handler.