added an init method for spreddit.js