splitting up js in towards new rack ideas