changed js profile controller