[TASK] Streamline and optimize JavaScript in install tool