Edited variables, corrected spelling errors i norder to make scipt work. Tested with console.log.