Refactor Frontend JS Code
Update Dependencies