Synchronous sum and automatic jquery fetching

- automatically fetch `jquery.js` if not present
- synchronous printing of total sum