added frontend js