An introduction to javascript for newbies