Minor changes for api.js, font_loader.js and svg.js

This PR:
- Some minor changes in api.js, font_loader.js and svg.js
- Added svg.js to build process
I think you can remove renderContext too