adding frontend js