separate part of js