split up js into several files