Practicing with testing javascript for errors