Splitting Javascript into separate files