fix error in scripts.js
A function was returning None (which doesn't exist). Now it returns 'original', which is the size of the image to retrieve if no smaller version is suitable.