Splitting of app JS into parts