Simple local auth module for JavaScript / node.js