added js crypto lib