before splitting up js