Frontend Enhancement

Removed unnecessary, duplicate js code