First try in javascript gaming