Added spin.js, various bugfixes