split javascript into new file