Bug 941969 - optimize JS for system app