Adds try/catch around spin.js initialization