bug fix in ssl save - added hittest javascript functions