added introductory javascript