fixed syntax bug introduced in fractions.js
fixed broken e variable and other minor typos

Also typos for those fixes.