Optimiza JavaScript