Startings of javascript animation