creating greatbox.js