split javascript into separate files