Frontend js file cleanup