add animation, rewrite script in literal format, fix ie8 layout