move getFileSuffix() to helper.js
add tests
update gitignore
adds new functions to extract logic from resize()
updates gitignore