initial check-in of code

broke out Javascript into a separate file