fix javascript profiles