fixed an issue with the self-preview not loading or loading slow; introduced by the new animation code also added a flag &animate , which enables the animation code (by default, its off now)
introduces lib.js as well, which is a split of main.js