Organized javascript into separate files