added some javascript learnings