split up js into smaller files.