My first javascript coding attempts