initial game animation converted into javascript