Edit paths in init.js
Add pdf.js to resources
Fix paths