Cleanup frontend js