updated formatting on js