adding profile frontend js