profiles to js compress