Canvas Animation made using javascript and html5