added credit main.js