js separation