colorbox functino in main.js