Add a loading icon and minimum wait for <formulaequationinput>

Wait at least 300ms between AJAX requests.
After typing, show a loading icon, when the request returns, hide the icon.
Rename silly variables
Add scientific notation to preview
Make the tests for the render_X methods look better