Document ready in main.js