Refactor frontend JS