Organization

Put javascript into separate files