javascript, css3 loading animation