Update gitignore
Handle remapping deferred functions
Update npm scripts
Fix bug with static functions
Update main.js
Add comment