Refactored code into psalms.js

- moved code into psalms.js
- started a basic search function
- started basic loging code