First steps to JavaScript, added functions to play sounds