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
- <del>Added svg.js to build process</del>