reindents, added scrollToError option, bootstrap 3 compatibility