chef and cleanup of js