Step towards js optimalization.