added secrets.js to gitignore and fixed bug in secrets.js