Fixes js upload bug and lack of https for images