put model(directory) into js(directory)