Don't need encodeURIComponent
Remove extraneous element
Fix typo