Revamp studentPost.js and factor out download.js