Various classic code problems solved in javascript as an excersise