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
remove this change for now