JS and HTML omtimized