Javascript Code For Games