Clean up code and get rid of sync functions (async ftw): Update index.js
Clean up code and get rid of sync functions (async ftw): Update resize.js