Update index.js

max file size check