correct publication js