Moved script to a separate file and fixed launching colorbox