Cleaned up code and added javascript animation fallback

- Cleaned up code
- Added javascript animation as fallback and default
- CSS3 transition support checked and enabled if supported (using Modernizr)
Removed inclusion of Modernizr

Please download and configure it yourself at
http://modernizr.com/download/

Make sure you include "CSS Transitions" if you choose to make a custom
build!