change formats to js only