Streamline javascript.