js: Make sure to serialize the screenshot info after upload