made clerk.js file; untested